﻿using MagicOnion;
using MagicOnion.Server;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace RPC服务端.Common
{
    public class MyService : ServiceBase<IMyService>, IMyService
    {
        public async UnaryResult<int> ChenAsync(int x, int y)
        {
            return x * y;
        }

        public async UnaryResult<int> ChuAsync(int x, int y)
        {
            return x / y;
        }

        public async UnaryResult<int> JiaAsync(int x, int y)
        {
            return x + y;
        }

        public async UnaryResult<int> JianAsync(int x, int y)
        {
            return x - y;
        }
    }
}
